package org.cb.gui;

import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 * 
 * @author Unknown
 * 
 * Used to create new RS panes.
 *
 */
public class Tab {
	
	/**
	 * Create a new RS pane for the tabs
	 * 
	 * @param text
	 * @return
	 */
	public static JComponent makeTextPanel(String text) {         
		JPanel panel = new JPanel(false);
		JLabel filler = new JLabel(text);         
		filler.setHorizontalAlignment(JLabel.CENTER);         
		panel.setLayout(null);         
		panel.add(filler);         
		return panel;
	}

}
